[@main.layout title="GuessGame - index"]

<h1>Number Guessing Game</h1>

<form name="guessgame" action="guess" method="post">
<table>
<tr><td>Guess a number ${game.minNum} to ${game.maxNum}: </td>
<td><input name="guessgame.number" type="text"/></td>
<td>[#if error ??]<p style="color: red">${error}</p>[/#if]</td></tr>
<tr><td colspan="3"><input type="submit"/></td></tr>
</table>
</form>

<p><a href="${reqRoute.controllerPath}/index?restart=true">Restart New Game</a></p>

[/@main.layout]
